package cn.wolfcode.p2p.bussness.query;

import cn.wolfcode.p2p.base.query.QueryObject;
import lombok.Getter;
import lombok.Setter;
import org.springframework.util.StringUtils;

import java.math.BigDecimal;
import java.util.Date;

@Setter
@Getter
public class BidRequestQueryObject extends QueryObject {

    //审核状态
    private int bidRequestState = -1;

    private Date endTime;

    //状态的数组
    private int[] states;

    private String orderByCondition;

    //标的类型
    private int bidRequestType = -1;

    public String getOrderByCondition(){
        return StringUtils.hasLength(orderByCondition) ? orderByCondition : null;
    }
}
